package org.example.JavaBean.plus;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Auther:Liu
 * @Testname:Emp
 * @Date:2025/8/4 9:36
 */
@Data
@NoArgsConstructor
@TableName(value = "emp")
public class Emp implements Serializable {
    @TableId(value="empno",type = IdType.AUTO)
    private Integer empno;
    @TableField(value="ename")
    private String ename;
    private String job;
    private int mgr;
    @TableField(value = "hiredate",fill = FieldFill.INSERT_UPDATE)
    private String hiredate;
    private Double sal;
    private Double comm;
    private int deptno;
//    @TableLogic(value = "1",delval = "0")
    private int state;

    @TableField(exist = false)
    private Dept dept;
}
